import React, { Component } from 'react'
import classNames from 'classnames'
export default class Tabs extends Component {
  render() {
    return (
      <div className="tabs-order">
        <ul className="sort-container">
          {this.props.tabs.map((item) => (
            <li
              className={classNames({ on: item.type === this.props.active })}
              key={item.id}
              onClick={() => this.props.changeTabs(item.type)}
            >
              按{item.name}排序
            </li>
          ))}
        </ul>
      </div>
    )
  }
}
